export default class Common {
  constructor(options) {
  }
  
  autoheight(id){
    let totalHeight = document.documentElement.clientHeight
    let minHeight = document.getElementsByClassName("content")[0].clientHeight
    let headerHeight = document.getElementsByClassName("main-header")[0].clientHeight
    let footerHeight = document.getElementsByClassName("main-footer")[0].clientHeight
    let contentHeaderHeight = document.getElementsByClassName("content-header")[0].clientHeight
    let boxheaderHeight = document.getElementsByClassName("box-header")[0].clientHeight
    var fheight = (totalHeight - headerHeight * 2 - 15 - footerHeight - contentHeaderHeight - boxheaderHeight) + 'px;'
    document.getElementById(id).setAttribute("style", "overflow-y: scroll;height:" + fheight)
  }
}